package cn.wh.aop;

/**
 * @Description 目标对象
 * @Version 1.0.0
 * @Date 2022/11/21 10:37
 * @Created wh
 */
public class TargetSource {

    private final Object target;

    public TargetSource(Object target) {
        this.target = target;
    }

    public Class<?>[] getTargetClass(){
        return this.getClass().getInterfaces();
    }

    public Object getTarget() {
        return target;
    }
}
